home *** CD-ROM | disk | FTP | other *** search
/ C++ für Kids / C++ for kids.iso / SETUP / US / CBUILDER / DATA.Z / MESSAGES.HPP < prev    next >
C/C++ Source or Header  |  1997-02-13  |  14KB  |  1,069 lines

  1. //----------------------------------------------------------------------------
  2. // Messages.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
  3. // From: Messages.pas
  4. //----------------------------------------------------------------------------
  5. #ifndef MessagesHPP
  6. #define MessagesHPP
  7. //----------------------------------------------------------------------------
  8. #include <Windows.hpp>
  9. #include <System.hpp>
  10. #pragma warn -par
  11. #pragma warn -hid 
  12. #pragma warn -inl
  13.  
  14. namespace Messages
  15. {
  16. //-- type declarations -------------------------------------------------------
  17. struct TMessage;
  18. typedef TMessage *PMessage;
  19.  
  20. struct TMessage
  21. {
  22.     Cardinal Msg;
  23.     union
  24.     {
  25.         struct 
  26.         {
  27.             Word WParamLo;
  28.             Word WParamHi;
  29.             Word LParamLo;
  30.             Word LParamHi;
  31.             Word ResultLo;
  32.             Word ResultHi;
  33.             
  34.         };
  35.         struct 
  36.         {
  37.             long WParam;
  38.             long LParam;
  39.             long Result;
  40.             
  41.         };
  42.         
  43.     };
  44. } ;
  45.  
  46. struct TWMNoParams
  47. {
  48.     Cardinal Msg;
  49.     Word Unused[4];
  50.     long Result;
  51. } ;
  52.  
  53. struct TWMKey
  54. {
  55.     Cardinal Msg;
  56.     Word CharCode;
  57.     Word Unused;
  58.     long KeyData;
  59.     long Result;
  60. } ;
  61.  
  62. struct TWMMouse
  63. {
  64.     Cardinal Msg;
  65.     long Keys;
  66.     union
  67.     {
  68.         struct 
  69.         {
  70.             Windows::TSmallPoint Pos;
  71.             long Result;
  72.             
  73.         };
  74.         struct 
  75.         {
  76.             short XPos;
  77.             short YPos;
  78.             
  79.         };
  80.         
  81.     };
  82. } ;
  83.  
  84. struct TWMWindowPosMsg
  85. {
  86.     Cardinal Msg;
  87.     int Unused;
  88.     WINDOWPOS *WindowPos;
  89.     long Result;
  90. } ;
  91.  
  92. struct TWMScroll
  93. {
  94.     Cardinal Msg;
  95.     short ScrollCode;
  96.     short Pos;
  97.     HWND ScrollBar;
  98.     long Result;
  99. } ;
  100.  
  101. struct TWMActivate
  102. {
  103.     Cardinal Msg;
  104.     Word Active;
  105.     Word Minimized;
  106.     HWND ActiveWindow;
  107.     long Result;
  108. } ;
  109.  
  110. struct TWMActivateApp
  111. {
  112.     Cardinal Msg;
  113.     DWord Active;
  114.     long ThreadId;
  115.     long Result;
  116. } ;
  117.  
  118. struct TWMAskCBFormatName
  119. {
  120.     Cardinal Msg;
  121.     Word NameLen;
  122.     Word Unused;
  123.     char *FormatName;
  124.     long Result;
  125. } ;
  126.  
  127. typedef TWMNoParams  TWMCancelMode;
  128.  
  129. struct TWMChangeCBChain
  130. {
  131.     Cardinal Msg;
  132.     HWND Remove;
  133.     HWND Next;
  134.     long Result;
  135. } ;
  136.  
  137. typedef TWMKey  TWMChar;
  138.  
  139. struct TWMCharToItem
  140. {
  141.     Cardinal Msg;
  142.     Word Key;
  143.     Word CaretPos;
  144.     HWND ListBox;
  145.     long Result;
  146. } ;
  147.  
  148. typedef TWMNoParams  TWMChildActivate;
  149.  
  150. struct TWMChooseFont_GetLogFont
  151. {
  152.     Cardinal Msg;
  153.     long Unused;
  154.     LOGFONTA *LogFont;
  155.     long Result;
  156. } ;
  157.  
  158. typedef TWMNoParams  TWMClear;
  159.  
  160. typedef TWMNoParams  TWMClose;
  161.  
  162. struct TWMCommand
  163. {
  164.     Cardinal Msg;
  165.     Word ItemID;
  166.     Word NotifyCode;
  167.     HWND Ctl;
  168.     long Result;
  169. } ;
  170.  
  171. struct TWMCompacting
  172. {
  173.     Cardinal Msg;
  174.     long CompactRatio;
  175.     long Unused;
  176.     long Result;
  177. } ;
  178.  
  179. struct TWMCompareItem
  180. {
  181.     Cardinal Msg;
  182.     HWND Ctl;
  183.     COMPAREITEMSTRUCT *CompareItemStruct;
  184.     long Result;
  185. } ;
  186.  
  187. typedef TWMNoParams  TWMCopy;
  188.  
  189. struct TWMCopyData
  190. {
  191.     Cardinal Msg;
  192.     HWND From;
  193.     COPYDATASTRUCT *CopyDataStruct;
  194.     long Result;
  195. } ;
  196.  
  197. struct TWMCreate
  198. {
  199.     Cardinal Msg;
  200.     int Unused;
  201.     CREATESTRUCTA *CreateStruct;
  202.     long Result;
  203. } ;
  204.  
  205. struct TWMCtlColor
  206. {
  207.     Cardinal Msg;
  208.     HDC ChildDC;
  209.     HWND ChildWnd;
  210.     long Result;
  211. } ;
  212.  
  213. typedef TWMCtlColor  TWMCtlColorBtn;
  214.  
  215. typedef TWMCtlColor  TWMCtlColorDlg;
  216.  
  217. typedef TWMCtlColor  TWMCtlColorEdit;
  218.  
  219. typedef TWMCtlColor  TWMCtlColorListbox;
  220.  
  221. typedef TWMCtlColor  TWMCtlColorMsgbox;
  222.  
  223. typedef TWMCtlColor  TWMCtlColorScrollbar;
  224.  
  225. typedef TWMCtlColor  TWMCtlColorStatic;
  226.  
  227. typedef TWMNoParams  TWMCut;
  228.  
  229. struct TWMDDE_Ack
  230. {
  231.     Cardinal Msg;
  232.     HWND PostingApp;
  233.     union
  234.     {
  235.         long PackedVal;
  236.         struct 
  237.         {
  238.             Word App;
  239.             Word Topic;
  240.             long Result;
  241.             
  242.         };
  243.         
  244.     };
  245. } ;
  246.  
  247. struct TWMDDE_Advise
  248. {
  249.     Cardinal Msg;
  250.     HWND PostingApp;
  251.     long PackedVal;
  252.     long Result;
  253. } ;
  254.  
  255. struct TWMDDE_Data
  256. {
  257.     Cardinal Msg;
  258.     HWND PostingApp;
  259.     long PackedVal;
  260.     long Result;
  261. } ;
  262.  
  263. struct TWMDDE_Execute
  264. {
  265.     Cardinal Msg;
  266.     HWND PostingApp;
  267.     int Commands;
  268.     long Result;
  269. } ;
  270.  
  271. struct TWMDDE_Initiate
  272. {
  273.     Cardinal Msg;
  274.     HWND PostingApp;
  275.     Word App;
  276.     Word Topic;
  277.     long Result;
  278. } ;
  279.  
  280. struct TWMDDE_Poke
  281. {
  282.     Cardinal Msg;
  283.     HWND PostingApp;
  284.     long PackedVal;
  285.     long Result;
  286. } ;
  287.  
  288. struct TWMDDE_Request
  289. {
  290.     Cardinal Msg;
  291.     HWND PostingApp;
  292.     Word Format;
  293.     Word Item;
  294.     long Result;
  295. } ;
  296.  
  297. struct TWMDDE_Terminate
  298. {
  299.     Cardinal Msg;
  300.     HWND PostingApp;
  301.     long Unused;
  302.     long Result;
  303. } ;
  304.  
  305. struct TWMDDE_Unadvise
  306. {
  307.     Cardinal Msg;
  308.     HWND PostingApp;
  309.     Word Format;
  310.     Word Item;
  311.     long Result;
  312. } ;
  313.  
  314. typedef TWMKey  TWMDeadChar;
  315.  
  316. struct TWMDeleteItem
  317. {
  318.     Cardinal Msg;
  319.     HWND Ctl;
  320.     DELETEITEMSTRUCT *DeleteItemStruct;
  321.     long Result;
  322. } ;
  323.  
  324. typedef TWMNoParams  TWMDestroy;
  325.  
  326. typedef TWMNoParams  TWMDestroyClipboard;
  327.  
  328. struct TWMDevModeChange
  329. {
  330.     Cardinal Msg;
  331.     int Unused;
  332.     char *Device;
  333.     long Result;
  334. } ;
  335.  
  336. typedef TWMNoParams  TWMDrawClipboard;
  337.  
  338. struct TWMDrawItem
  339. {
  340.     Cardinal Msg;
  341.     HWND Ctl;
  342.     DRAWITEMSTRUCT *DrawItemStruct;
  343.     long Result;
  344. } ;
  345.  
  346. struct TWMDropFiles
  347. {
  348.     Cardinal Msg;
  349.     int Drop;
  350.     long Unused;
  351.     long Result;
  352. } ;
  353.  
  354. struct TWMEnable
  355. {
  356.     Cardinal Msg;
  357.     DWord Enabled;
  358.     long Unused;
  359.     long Result;
  360. } ;
  361.  
  362. struct TWMEndSession
  363. {
  364.     Cardinal Msg;
  365.     DWord EndSession;
  366.     long Unused;
  367.     long Result;
  368. } ;
  369.  
  370. struct TWMEnterIdle
  371. {
  372.     Cardinal Msg;
  373.     long Source;
  374.     HWND IdleWnd;
  375.     long Result;
  376. } ;
  377.  
  378. struct TWMEnterMenuLoop
  379. {
  380.     Cardinal Msg;
  381.     DWord IsTrackPopupMenu;
  382.     long Unused;
  383.     long Result;
  384. } ;
  385.  
  386. typedef TWMEnterMenuLoop  TWMExitMenuLoop;
  387.  
  388. struct TWMEraseBkgnd
  389. {
  390.     Cardinal Msg;
  391.     HDC DC;
  392.     long Unused;
  393.     long Result;
  394. } ;
  395.  
  396. typedef TWMNoParams  TWMFontChange;
  397.  
  398. typedef TWMNoParams  TWMGetDlgCode;
  399.  
  400. typedef TWMNoParams  TWMGetFont;
  401.  
  402. struct TWMGetIcon
  403. {
  404.     Cardinal Msg;
  405.     DWord BigIcon;
  406.     long Unused;
  407.     long Result;
  408. } ;
  409.  
  410. typedef TWMNoParams  TWMGetHotKey;
  411.  
  412. struct TWMGetMinMaxInfo
  413. {
  414.     Cardinal Msg;
  415.     int Unused;
  416.     MINMAXINFO *MinMaxInfo;
  417.     long Result;
  418. } ;
  419.  
  420. struct TWMGetText
  421. {
  422.     Cardinal Msg;
  423.     int TextMax;
  424.     char *Text;
  425.     long Result;
  426. } ;
  427.  
  428. typedef TWMNoParams  TWMGetTextLength;
  429.  
  430. struct TWMHotKey
  431. {
  432.     Cardinal Msg;
  433.     long HotKey;
  434.     long Unused;
  435.     long Result;
  436. } ;
  437.  
  438. typedef TWMScroll  TWMHScroll;
  439.  
  440. struct TWMHScrollClipboard
  441. {
  442.     Cardinal Msg;
  443.     HWND Viewer;
  444.     Word ScrollCode;
  445.     Word Pos;
  446.     long Result;
  447. } ;
  448.  
  449. typedef TWMEraseBkgnd  TWMIconEraseBkgnd;
  450.  
  451. struct TWMInitDialog
  452. {
  453.     Cardinal Msg;
  454.     HWND Focus;
  455.     long InitParam;
  456.     long Result;
  457. } ;
  458.  
  459. struct TWMInitMenu
  460. {
  461.     Cardinal Msg;
  462.     HMENU Menu;
  463.     long Unused;
  464.     long Result;
  465. } ;
  466.  
  467. struct TWMInitMenuPopup
  468. {
  469.     Cardinal Msg;
  470.     HMENU MenuPopup;
  471.     short Pos;
  472.     Word SystemMenu;
  473.     long Result;
  474. } ;
  475.  
  476. typedef TWMKey  TWMKeyDown;
  477.  
  478. typedef TWMKey  TWMKeyUp;
  479.  
  480. struct TWMKillFocus
  481. {
  482.     Cardinal Msg;
  483.     HWND FocusedWnd;
  484.     long Unused;
  485.     long Result;
  486. } ;
  487.  
  488. typedef TWMMouse  TWMLButtonDblClk;
  489.  
  490. typedef TWMMouse  TWMLButtonDown;
  491.  
  492. typedef TWMMouse  TWMLButtonUp;
  493.  
  494. typedef TWMMouse  TWMMButtonDblClk;
  495.  
  496. typedef TWMMouse  TWMMButtonDown;
  497.  
  498. typedef TWMMouse  TWMMButtonUp;
  499.  
  500. struct TWMMDIActivate
  501. {
  502.     Cardinal Msg;
  503.     union
  504.     {
  505.         struct 
  506.         {
  507.             HWND DeactiveWnd;
  508.             HWND ActiveWnd;
  509.             long Result;
  510.             
  511.         };
  512.         HWND ChildWnd;
  513.         
  514.     };
  515. } ;
  516.  
  517. struct TWMMDICascade
  518. {
  519.     Cardinal Msg;
  520.     long Cascade;
  521.     long Unused;
  522.     long Result;
  523. } ;
  524.  
  525. struct TWMMDICreate
  526. {
  527.     Cardinal Msg;
  528.     int Unused;
  529.     MDICREATESTRUCTA *MDICreateStruct;
  530.     long Result;
  531. } ;
  532.  
  533. struct TWMMDIDestroy
  534. {
  535.     Cardinal Msg;
  536.     HWND Child;
  537.     long Unused;
  538.     long Result;
  539. } ;
  540.  
  541. typedef TWMNoParams  TWMMDIGetActive;
  542.  
  543. typedef TWMNoParams  TWMMDIIconArrange;
  544.  
  545. struct TWMMDIMaximize
  546. {
  547.     Cardinal Msg;
  548.     HWND Maximize;
  549.     long Unused;
  550.     long Result;
  551. } ;
  552.  
  553. struct TWMMDINext
  554. {
  555.     Cardinal Msg;
  556.     HWND Child;
  557.     long Next;
  558.     long Result;
  559. } ;
  560.  
  561. typedef TWMNoParams  TWMMDIRefreshMenu;
  562.  
  563. struct TWMMDIRestore
  564. {
  565.     Cardinal Msg;
  566.     HWND IDChild;
  567.     long Unused;
  568.     long Result;
  569. } ;
  570.  
  571. struct TWMMDISetMenu
  572. {
  573.     Cardinal Msg;
  574.     HMENU MenuFrame;
  575.     HMENU MenuWindow;
  576.     long Result;
  577. } ;
  578.  
  579. struct TWMMDITile
  580. {
  581.     Cardinal Msg;
  582.     long Tile;
  583.     long Unused;
  584.     long Result;
  585. } ;
  586.  
  587. struct TWMMeasureItem
  588. {
  589.     Cardinal Msg;
  590.     HWND IDCtl;
  591.     MEASUREITEMSTRUCT *MeasureItemStruct;
  592.     long Result;
  593. } ;
  594.  
  595. struct TWMMenuChar
  596. {
  597.     Cardinal Msg;
  598.     char User;
  599.     Byte Unused;
  600.     Word MenuFlag;
  601.     HMENU Menu;
  602.     long Result;
  603. } ;
  604.  
  605. struct TWMMenuSelect
  606. {
  607.     Card